<div id="ads_header">			
    <?php
        foreach($topheaderads as $topheader) {
            $link = $topheader["Paid_ads"]["link"];
            if(empty($topheader["Paid_ads"]["link"])) {
                $link = '#';
            }
            echo '<a href="'.$link.'" target="_blank">'.$this->Html->image('advertises/'.$topheader["Paid_ads"]["banner"], array('width' => '100%','alt'=>$topheader["Paid_ads"]["title"])).'</a>';
        }
    ?>
</div>